import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/api/sysrole/list',
    method: 'get',
    params: params
  })
}

export function getAll() {
  return request({
    url: '/api/sysrole/all',
    method: 'get'
  })
}

export function roleOfOrganization(params) {
  return request({
    url: '/api/sysrole/roleOfOrganization',
    method: 'get',
    params: params
  })
}

export function configPermission(data) {
  return request({
    url: '/api/sysrole/configPer',
    method: 'post',
    data: data
  })
}

export function roleOfUser(params) {
  return request({
    url: '/api/sysrole/roleOfUser',
    method: 'get',
    params: params
  })
}
export function update(data) {
  return request({
    url: '/api/sysrole/update',
    method: 'post',
    data: data
  })
}


export function del(data) {
  return request({
    url: '/api/sysrole/delete',
    method: 'post',
    data: data
  })
}


export function insert(data) {
  return request({
    url: '/api/sysrole/insert',
    method: 'post',
    data: data
  })
}
